﻿@{
    Layout = null;
    LeEdu.MODEL.Information str = ViewBag.infor;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>EditInfomation</title>
</head>
<body>
    <form class="form-horizontal" method="post" action="/Group/EditInformationback" enctype="multipart/form-data">
        <input id="Hidden1" type="hidden" value="@str.ID" name="ID" />
        <input id="Hidden1" type="hidden" value="@str.INOLDTIME" name="INOLDTIME" />
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="exampleModalLabel">编辑资讯</h4>
        </div>
        <div class="modal-body">
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">资讯标题</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="INTITLE" id="INTITLE" value="@str.INTITLE">
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">所属栏目</label>
                <div class="col-sm-10">
                    <select class="form-control" name="ColumnssID">

                        @foreach (var item in ViewBag.collist)
                        {
                            <option @(str.ColumnssID == item.ColumnssID ? "selected='selected'" : "") value="@item.ColumnssID">@item.CLNAME</option>
                        }
                    </select>
                </div>
            </div>
            @*<div class="form-group">
                    <label for="article-tagIds" 　class="control-label">TAG标签</label>
                    <div class="controls">
                        <select class="form-control" id="categoryId" type="text" name="lableID " tabindex="2">
                            <option value="">-选择标签-</option>
                            @foreach (var item in ViewBag.lalist as List<LeEdu.MODEL.Lable>)
                            {
                                <option  value="@item.LableId">@item.LableName</option>
                            }
                        </select>
                    </div>
                </div>*@
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">正文</label>
                <div class="col-sm-10">    
                     <script id="container" name="INCONTENT" type="text/plain">
                        @Html.Raw(str.INCONTENT)
                    </script>
                    <script type="text/javascript">
                        var editor = UE.getEditor('container')
                    </script>
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">资讯属性</label>
                <div class="col-sm-10">
                    <label class="checkbox-inline">
                        <input type="checkbox" name="ATTRIBUTE" @if (str.ATTRIBUTE.Contains("置顶")) { @Html.Raw("checked='checked'") } value="置顶"> 置顶
                    </label>
                    <label class="checkbox-inline">
                        <input type="checkbox" name="ATTRIBUTE" @if (str.ATTRIBUTE.Contains("头条")) { @Html.Raw("checked='checked'")  } value="头条"> 头条
                    </label>
                    <label class="checkbox-inline">
                        <input type="checkbox" name="ATTRIBUTE" @if (str.ATTRIBUTE.Contains("推荐")) { @Html.Raw("checked='checked'")  } value="推荐"> 推荐
                    </label>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">来源名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="INSOURCENAME" id="INSOURCENAME" value="@str.INSOURCENAME">
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">来源地址</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="INSOURCE" id="INSOURCE" value="@str.INSOURCE">
                </div>
            </div>

            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">设置头像</label>

                <div class="col-sm-10">
                    <input id="Hidden1" type="hidden" value="@str.INIMAGE" name="touxiang" />
                    <img style="width:200px;height:200px;" src="~/Img/@str.INIMAGE" class="img-circle" />
                    <span class="btn-upload form-group col-10">
                        <input type="file" multiple name="INIMAGE" value="" class="input-file">
                    </span>
                </div>
            </div>

        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            <button type="submit" class="btn btn-primary">提交</button>
        </div>
    </form>
</body>
</html>
